package io.renren.modules.miniapp.controller;

import io.renren.common.utils.R;
import io.renren.modules.communityService.service.DbNoticeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 通知表
 *
 * @author chenweilong
 * @email 1433471850@qq.com
 * @date 2021-05-11 20:26:23
 */
@RestController
@RequestMapping("miniapp/dbnotice")
@Api(value = "小程序通知表",tags = "小程序通知表")
public class MiniAppDbNoticeController {
    @Autowired
    private DbNoticeService dbNoticeService;

    /**
     * 列表
     */
    @GetMapping("/list")
    @ApiOperation(value = "列表",notes = "列表")
    public R list(){
        return R.data(dbNoticeService.list());
    }

}
